package gazzera.swing.network;

import gazzera.swing.model.*;

import java.util.*;

import javax.swing.table.*;


class NodeTableModel extends AbstractTableModel
{
	private List<Connection> list;
	

	public NodeTableModel(List<Connection> list)
	{
		super();
		this.list = list;
	}

	@Override
	public int getColumnCount()
	{
		return 3;
	}

	@Override
	public int getRowCount()
	{
		return list.size();
	}

	@Override
	public Object getValueAt(int rowIndex, int columnIndex)
	{
		Connection c = list.get(rowIndex);
		return c;
	}
	
	
	
}